package team.lourd.network.system.own.domain.netel;

import lombok.Getter;
import lombok.Setter;
import team.lourd.network.system.own.domain.Branch;
import team.lourd.network.system.own.domain.Record;

import javax.persistence.*;
import java.util.List;

/**
 * @Description: 网元的分支
 * @Author: Lourd
 * @Date: 2019/1/21
 */
@Table(name = "ne_branch")
@Entity
@Getter
@Setter
public class NEBranch extends Branch {

    @OneToOne(mappedBy = "neBranch")
    private NEDiagram neDiagram;

    @ManyToOne(cascade = CascadeType.ALL)
    private NEModel neModel;

    @OneToMany(mappedBy = "neBranch", cascade = CascadeType.ALL)
    private List<Record> records;


}
